package org.bluesky.framework.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.bluesky.framework.ResponseResult;
import org.bluesky.framework.dto.AddArticleDto;
import org.bluesky.framework.dto.ArticleDto;
import org.bluesky.framework.entity.Article;

public interface ArticleService extends IService<Article> {
    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNumber, Integer pageSize, Long categoryId);

    ResponseResult articleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto articleDto);

    ResponseResult getArticleList(Integer pageNum, Integer pageSize, String title, String summary);

    ResponseResult getArticleById(Long id);

    void edit(ArticleDto articleDto);

    ResponseResult deleteArticleById(Long id);
}
